<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>测试restful</title>
</head>

<body>
<a th:href="@{/user}">查询全部用户信息</a> <br>
<a th:href="@{/user/1}">查询id为1的用户信息</a> <br>

<form method="post" th:action="@{/user/1}">
    <input name="_method" type="hidden" value="DELETE">
    用户名: <label for="username"><input id="username" name="username" type="text"></label> <br>
    密码: <label for="password"><input id="password" name="password" type="password"></label> <br>
    <input id="submit" name="submit" type="submit" value="提交表单">
</form>
</body>
</html>